package com.java1412.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @author java1412
 * @since 2025-04-30 13:43
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class HouseInfo implements Serializable {
    private Integer houseId;
    private String houseDesc;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date publishDate;
    private Integer monthlyRent;
    // typeId INT(11) NOT NULL,
    private HouseType houseType;
}
